package day11.part2;

import static java.lang.Math.*;

/**
 * @Author juzipi
 * @Date 2021/6/27 15:52
 * @Info
 */
public class Circle {

    private double radius;//半径

    public Circle(){
        this.radius = 1.0;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public double getArea(){
        return PI*radius*radius;
    }

}
